home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / QuickDraw GX / QuickDraw GX Info / QuickDraw GX Interfaces / Interfaces & Libraries / Pascal Interfaces & Libraries / Pascal Interfaces / GraphicsErrors.p < prev    next >
Encoding:
Text File  |  1994-04-02  |  12.9 KB  |  372 lines  |  [TEXT/MPS ]

  1. {
  2.  graphics:
  3.     public error equates
  4.     by Cary Clark, Georgiann Delaney, Michael Fairman, Dave Good, Robert Johnson, Keith McGreggor, Oliver Steele, David Van Brink, Chris Yerga
  5.     Copyright 1987 - 1991 Apple Computer, Inc.  All rights reserved.    
  6. }
  7.  
  8. {$IFC UNDEFINED UsingIncludes}
  9. {$SETC UsingIncludes := 0}
  10. {$ENDC}
  11.  
  12. {$IFC NOT UsingIncludes}
  13.     UNIT GraphicsErrors;
  14.     INTERFACE
  15. {$ENDC}
  16.  
  17. {$IFC UNDEFINED UsingGraphicsErrors}
  18. {$SETC UsingGraphicsErrors := 1}
  19.  
  20.  
  21. CONST
  22.  
  23.     { Error Constants }
  24.     out_of_memory = -27999;
  25.     internal_fatal_error = -27998;
  26.     no_outline_font_found = -27997;
  27.     not_enough_memory_for_graphics_client_heap = -27996;
  28.     could_not_create_backing_store = -27995;
  29.     internal_error = -27800;
  30.     internal_font_error = -27799;
  31.     internal_layout_error = -27798;
  32.     functionality_unimplemented = -27797;
  33.     clip_to_frame_shape_unimplemented = -27796;
  34.     gxFirstFontScalerError = -27795;
  35.     null_font_scaler_context = -27795;
  36.     null_font_scaler_input = -27794;
  37.     invalid_font_scaler_context = -27793;
  38.     invalid_font_scaler_input = -27792;
  39.     invalid_font_scaler_font_data = -27791;
  40.     font_scaler_newblock_failed = -27790;
  41.     font_scaler_bitmap_allocation_failed = -27789;
  42.     font_scaler_outline_allocation_failed = -27788;
  43.     required_font_scaler_table_missing = -27787;
  44.     unsupported_font_scaler_outline_format = -27786;
  45.     unsupported_font_scaler_stream_format = -27785;
  46.     unsupported_font_scaler_font_format = -27784;
  47.     font_scaler_hinting_error = -27783;
  48.     font_scaler_rasterizer_error = -27782;
  49.     font_scaler_internal_error = -27781;
  50.     font_scaler_invalid_matrix = -27780;
  51.     font_scaler_fixed_overflow = -27779;
  52.     font_scaler_api_version_mismatch = -27778;
  53.     gxLastFontScalerError = -27778;
  54.     unknown_font_scaler_error = -27777;
  55.     illegal_font_storage_type = -27776;
  56.     illegal_font_storage_reference = -27775;
  57.     illegal_font_attributes = -27774;
  58.     illegal_font_parameter = -27773;
  59.     font_cannot_be_changed = -27772;
  60.     fragmented_memory = -27771;
  61.     could_not_dispose_backing_store = -27770;
  62.     unflattening_interrupted_by_client = -27769;
  63.     parameter_is_nil = -27700;
  64.     shape_is_nil = -27699;
  65.     style_is_nil = -27698;
  66.     transform_is_nil = -27697;
  67.     ink_is_nil = -27696;
  68.     transferMode_is_nil = -27695;
  69.     color_is_nil = -27694;
  70.     colorProfile_is_nil = -27693;
  71.     colorSet_is_nil = -27692;
  72.     spoolProcedure_is_nil = -27691;
  73.     tag_is_nil = -27690;
  74.     type_is_nil = -27689;
  75.     mapping_is_nil = -27688;
  76.     parameter_out_of_range = -27687;
  77.     inconsistent_parameters = -27686;
  78.     index_is_less_than_zero = -27685;
  79.     index_is_less_than_one = -27684;
  80.     count_is_less_than_zero = -27683;
  81.     count_is_less_than_one = -27682;
  82.     contour_is_less_than_zero = -27681;
  83.     length_is_less_than_zero = -27680;
  84.     invalid_client_reference = -27679;
  85.     invalid_graphics_heap_start_pointer = -27678;
  86.     invalid_nongraphic_globals_pointer = -27677;
  87.     colorSpace_out_of_range = -27676;
  88.     pattern_lattice_out_of_range = -27675;
  89.     frequency_parameter_out_of_range = -27674;
  90.     tinting_parameter_out_of_range = -27673;
  91.     method_parameter_out_of_range = -27672;
  92.     space_may_not_be_indexed = -27671;
  93.     glyph_index_too_small = -27670;
  94.     no_glyphs_added_to_font = -27669;
  95.     glyph_not_added_to_font = -27668;
  96.     point_does_not_intersect_bitmap = -27667;
  97.     required_font_table_not_present = -27666;
  98.     unknown_font_table_format = -27665;
  99.     shapeFill_not_allowed = -27664;
  100.     inverseFill_face_must_set_clipLayer_flag = -27663;
  101.     invalid_transferMode_colorSpace = -27662;
  102.     colorProfile_must_be_nil = -27661;
  103.     bitmap_pixel_size_must_be_1 = -27660;
  104.     empty_shape_not_allowed = -27659;
  105.     ignorePlatformShape_not_allowed = -27658;
  106.     nil_style_in_glyph_not_allowed = -27657;
  107.     complex_glyph_style_not_allowed = -27656;
  108.     cannot_set_item_shapes_to_nil = -27655;
  109.     cannot_use_original_item_shapes_when_growing_picture = -27654;
  110.     cannot_add_unspecified_new_glyphs = -27653;
  111.     cannot_dispose_locked_tag = -27652;
  112.     cannot_dispose_locked_shape = -27651;
  113.     graphic_type_does_not_have_a_structure = -27650;
  114.     style_run_array_does_not_match_number_of_characters = -27649;
  115.     rectangles_cannot_be_inserted_into = -27648;
  116.     unknown_graphics_heap = -27647;
  117.     graphics_routine_selector_is_obsolete = -27646;
  118.     cannot_set_graphics_client_memory_without_setting_size = -27645;
  119.     graphics_client_memory_too_small = -27644;
  120.     graphics_client_memory_is_already_allocated = -27643;
  121.     viewPort_is_a_window = -27642;
  122.     illegal_type_for_shape = -27641;
  123.     invalid_viewDevice_reference = -27640;
  124.     invalid_viewGroup_reference = -27639;
  125.     invalid_viewPort_reference = -27638;
  126.     no_owners = -27637;
  127.     bad_address = -27636;
  128.     object_wrong_type = -27635;
  129.     shape_wrong_type = -27634;
  130.     style_wrong_type = -27633;
  131.     ink_wrong_type = -27632;
  132.     transform_wrong_type = -27631;
  133.     device_wrong_type = -27630;
  134.     port_wrong_type = -27629;
  135.     shape_cache_wrong_type = -27628;
  136.     style_cache_wrong_type = -27627;
  137.     ink_cache_wrong_type = -27626;
  138.     transform_cache_wrong_type = -27625;
  139.     port_cache_wrong_type = -27624;
  140.     shape_cache_parent_mismatch = -27623;
  141.     style_cache_parent_mismatch = -27622;
  142.     ink_cache_parent_mismatch = -27621;
  143.     transform_cache_parent_mismatch = -27620;
  144.     port_cache_parent_mismatch = -27619;
  145.     invalid_shape_cache_port = -27618;
  146.     invalid_shape_cache_device = -27617;
  147.     invalid_ink_cache_port = -27616;
  148.     invalid_ink_cache_device = -27615;
  149.     invalid_style_cache_port = -27614;
  150.     invalid_style_cache_device = -27613;
  151.     invalid_transform_cache_port = -27612;
  152.     invalid_transform_cache_device = -27611;
  153.     indirect_memory_block_too_small = -27610;
  154.     indirect_memory_block_too_large = -27609;
  155.     unexpected_nil_pointer = -27608;
  156.     invalid_pointer = -27607;
  157.     invalid_seed = -27606;
  158.     invalid_frame_seed = -27605;
  159.     invalid_text_seed = -27604;
  160.     invalid_draw_seed = -27603;
  161.     bad_private_flags = -27602;
  162.     text_bounds_cache_wrong_size = -27601;
  163.     text_metrics_cache_wrong_size = -27600;
  164.     text_index_cache_wrong_size = -27599;
  165.     bitmap_ptr_too_small = -27598;
  166.     bitmap_ptr_not_aligned = -27597;
  167.     bitmap_rowBytes_negative = -27596;
  168.     bitmap_width_negative = -27595;
  169.     bitmap_height_negative = -27594;
  170.     invalid_pixelSize = -27593;
  171.     bitmap_rowBytes_too_small = -27592;
  172.     bitmap_rowBytes_not_aligned = -27591;
  173.     bitmap_rowBytes_must_be_specified_for_user_image_buffer = -27590;
  174.     invalid_matrix_flag = -27589;
  175.     invalid_vector_count = -27588;
  176.     invalid_contour_count = -27587;
  177.     recursive_caches = -27586;
  178.     glyph_run_count_negative = -27585;
  179.     glyph_run_count_zero = -27584;
  180.     glyph_run_counts_do_not_sum_to_character_count = -27583;
  181.     glyph_first_advance_bit_set_not_allowed = -27582;
  182.     glyph_tangent_vectors_both_zero = -27581;
  183.     layout_run_length_negative = -27580;
  184.     layout_run_length_zero = -27579;
  185.     layout_run_level_negative = -27578;
  186.     layout_run_lengths_do_not_sum_to_text_length = -27577;
  187.     invalid_fillShape_ownerCount = -27576;
  188.     recursive_fillShapes = -27575;
  189.     bad_shape_in_picture = -27574;
  190.     bad_style_in_picture = -27573;
  191.     bad_ink_in_picture = -27572;
  192.     bad_transform_in_picture = -27571;
  193.     bad_shape_cache_in_picture = -27570;
  194.     bad_seed_in_picture = -27569;
  195.     invalid_picture_count = -27568;
  196.     bad_textLayer_count = -27567;
  197.     bad_fillType_in_textFace = -27566;
  198.     bad_style_in_textFace = -27565;
  199.     bad_transform_in_textFace = -27564;
  200.     transform_clip_missing = -27563;
  201.     metrics_wrong_type = -27562;
  202.     metrics_point_size_probably_bad = -27561;
  203.     scalar_block_wrong_type = -27560;
  204.     scalar_block_parent_mismatch = -27559;
  205.     scalar_block_too_small = -27558;
  206.     scalar_block_too_large = -27557;
  207.     invalid_metrics_range = -27556;
  208.     invalid_metrics_flags = -27555;
  209.     metrics_maxWidth_probably_bad = -27554;
  210.     font_wrong_type = -27553;
  211.     font_wrong_size = -27552;
  212.     invalid_font_platform = -27551;
  213.     invalid_lookup_range = -27550;
  214.     invalid_lookup_platform = -27549;
  215.     font_not_in_font_list = -27548;
  216.     metrics_not_in_metrics_list = -27547;
  217.     bad_device_private_flags = -27546;
  218.     bad_device_attributes = -27545;
  219.     invalid_device_number = -27544;
  220.     invalid_device_viewGroup = -27543;
  221.     invalid_device_bounds = -27542;
  222.     invalid_bitmap_in_device = -27541;
  223.     colorSet_wrong_type = -27540;
  224.     invalid_colorSet_viewDevice_owners = -27539;
  225.     invalid_colorSet_colorSpace = -27538;
  226.     invalid_colorSet_count = -27537;
  227.     colorProfile_wrong_type = -27536;
  228.     invalid_colorProfile_flags = -27535;
  229.     invalid_colorProfile_response_count = -27534;
  230.     backing_free_parent_mismatch = -27533;
  231.     backing_store_parent_mismatch = -27532;
  232.     number_of_contours_exceeds_implementation_limit = -27400;
  233.     number_of_points_exceeds_implementation_limit = -27399;
  234.     size_of_polygon_exceeds_implementation_limit = -27398;
  235.     size_of_path_exceeds_implementation_limit = -27397;
  236.     size_of_text_exceeds_implementation_limit = -27396;
  237.     size_of_bitmap_exceeds_implementation_limit = -27395;
  238.     number_of_colors_exceeds_implementation_limit = -27394;
  239.     common_colors_not_initialized = -27300;
  240.     no_open_picture = -27299;
  241.     picture_already_open = -27298;
  242.     no_open_poly = -27297;
  243.     poly_already_open = -27296;
  244.     no_open_region = -27295;
  245.     region_already_open = -27294;
  246.     no_active_picture = -27293;
  247.  
  248.     { Warning Constants }
  249.     warning_stack_underflow = -26999;
  250.     warning_stack_overflow = -26998;
  251.     notice_stack_underflow = -26997;
  252.     notice_stack_overflow = -26996;
  253.     shape_does_not_contain_text = -26900;
  254.     shape_does_not_contain_a_bitmap = -26899;
  255.     picture_expected = -26898;
  256.     bitmap_is_not_resizable = -26897;
  257.     shape_operator_may_not_be_a_bitmap = -26896;
  258.     shape_operator_may_not_be_a_picture = -26895;
  259.     graphic_type_does_not_contain_points = -26894;
  260.     graphic_type_does_not_have_multiple_contours = -26893;
  261.     graphic_type_cannot_be_mapped = -26892;
  262.     graphic_type_cannot_be_moved = -26891;
  263.     graphic_type_cannot_be_scaled = -26890;
  264.     graphic_type_cannot_be_rotated = -26889;
  265.     graphic_type_cannot_be_skewed = -26888;
  266.     graphic_type_cannot_be_reset = -26887;
  267.     graphic_type_cannot_be_dashed = -26886;
  268.     graphic_type_cannot_be_reduced = -26885;
  269.     graphic_type_cannot_be_inset = -26884;
  270.     shape_cannot_be_inverted = -26883;
  271.     map_shape_out_of_range = -26800;
  272.     move_shape_out_of_range = -26799;
  273.     scale_shape_out_of_range = -26798;
  274.     rotate_shape_out_of_range = -26797;
  275.     skew_shape_out_of_range = -26796;
  276.     map_transform_out_of_range = -26795;
  277.     move_transform_out_of_range = -26794;
  278.     scale_transform_out_of_range = -26793;
  279.     rotate_transform_out_of_range = -26792;
  280.     skew_transform_out_of_range = -26791;
  281.     contour_out_of_range = -26700;
  282.     index_out_of_range_in_contour = -26699;
  283.     picture_index_out_of_range = -26698;
  284.     color_index_requested_not_found = -26697;
  285.     colorSet_index_out_of_range = -26696;
  286.     index_out_of_range = -26695;
  287.     count_out_of_range = -26694;
  288.     length_out_of_range = -26693;
  289.     font_table_index_out_of_range = -26692;
  290.     font_glyph_index_out_of_range = -26691;
  291.     font_table_not_found = -26690;
  292.     font_name_not_found = -26689;
  293.     shape_access_not_allowed = -26688;
  294.     colorSet_access_restricted = -26687;
  295.     colorProfile_access_restricted = -26686;
  296.     tag_access_restricted = -26685;
  297.     viewDevice_access_restricted = -26684;
  298.     new_shape_contains_invalid_data = -26683;
  299.     new_tag_contains_invalid_data = -26682;
  300.     extra_data_passed_was_ignored = -26681;
  301.     unable_to_traverse_open_contour_that_starts_or_ends_off_the_curve = -26680;
  302.     unable_to_draw_open_contour_that_starts_or_ends_off_the_curve = -26679;
  303.     picture_cannot_contain_itself = -26678;
  304.     viewPort_cannot_contain_itself = -26677;
  305.     cannot_dispose_default_shape = -26676;
  306.     cannot_dispose_default_style = -26675;
  307.     cannot_dispose_default_ink = -26674;
  308.     cannot_dispose_default_transform = -26673;
  309.     cannot_dispose_default_colorProfile = -26672;
  310.     cannot_dispose_default_colorSet = -26671;
  311.     cannot_set_unique_items_attribute_for_a_picture_that_already_contains_items = -26670;
  312.     shape_not_locked = -26669;
  313.     tag_not_locked = -26668;
  314.     shape_direct_attribute_not_set = -26667;
  315.     first_glyph_advance_must_be_absolute = -26666;
  316.     shape_does_not_have_area = -26665;
  317.     shape_does_not_have_length = -26664;
  318.     point_does_not_intersect_port = -26663;
  319.     cannot_dispose_non_font = -26662;
  320.     character_substitution_took_place = -26661;
  321.     font_substitution_took_place = -26660;
  322.     union_of_area_and_length_returns_area_only = -26659;
  323.     insufficient_coordinate_space_for_new_device = -26658;
  324.     unrecognized_stream_version = -26657;
  325.     bad_data_in_stream = -26656;
  326.     gxFirstFontScalerWarning = -26655;
  327.     font_scaler_no_output = -26655;
  328.     font_scaler_fake_metrics = -26654;
  329.     font_scaler_fake_linespacing = -26653;
  330.     font_scaler_glyph_substitution = -26652;
  331.     gxLastFontScalerWarning = -26652;
  332.     shape_passed_has_no_bounds = -26651;
  333.     layer_style_cannot_contain_a_face = -26650;
  334.     layer_glyph_shape_cannot_contain_nil_styles = -26649;
  335.     face_override_style_font_must_match_style = -26648;
  336.     tags_of_type_flst_removed = -26647;
  337.     no_picture_drawn = -26600;
  338.     polygons_have_different_size_contours = -26599;
  339.     graphic_type_cannot_be_specifed_by_four_values = -26598;
  340.     graphic_type_cannot_be_specifed_by_six_values = -26597;
  341.     point_expected = -26596;
  342.     line_or_rectangle_expected = -26595;
  343.     curve_expected = -26594;
  344.     graphic_type_does_not_contain_control_bits = -26593;
  345.     request_exceeds_available_data = -26592;
  346.     extra_data_unread = -26591;
  347.     no_variable_length_user_data_saved = -26590;
  348.  
  349.  
  350.  
  351. TYPE
  352.     GxGraphicsError = LongInt;
  353.     GxGraphicsErrorPointer = ^GxGraphicsError;
  354.  
  355.     GxGraphicsWarning = LongInt;
  356.     GxGraphicsWarningPointer = ^GxGraphicsWarning;
  357.  
  358.     GxGraphicsNotice = LongInt;
  359.     GxGraphicsNoticePointer = ^GxGraphicsNotice;
  360.  
  361.  
  362.     GxUserErrorFunction = ProcPtr;
  363.     GxUserWarningFunction = ProcPtr;
  364.     GxUserNoticeFunction = ProcPtr;
  365.  
  366.  
  367. {$ENDC}
  368.  
  369. {$IFC NOT UsingIncludes}
  370.     END.
  371. {$ENDC}
  372.